package com.popo.android;

import java.io.File;
import java.io.IOException;

import org.apache.http.HttpException;
import org.apache.http.HttpResponse;
import org.apache.http.entity.ContentType;
import org.apache.http.protocol.HttpContext;
import org.apache.http.params.HttpParams;
import org.apache.http.params.SyncBasicHttpParams;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.popo.android.R;

public class PhotoAgeActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.age);
		View btn = findViewById(R.id.btn);
		final TextView tv = (TextView) findViewById(R.id.tv);

		btn.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				new Thread() {
					public void run() {

						// HttpParams params =httpclient.getParams();
						// params.setParameter("Accept",
						// "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
						// params.setParameter(
						// "Accept-Language",
						// "zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3");
						// params.setParameter("Host",
						// "www.pictriev.com");
						// params.setParameter("Referer",
						// "http://www.pictriev.com/facedb/fs2.php");
						// params.setParameter("User-Agent",
						// "Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20100101 Firefox/11.0");
						// File upload = new File("/sdcard/jj.jpg");
						/**
						 * Accept text/html,application/xhtml+xml,application
						 * /xml;q=0.9,*\/*;q=0.8 Accept-Encoding gzip, deflate
						 * Accept-Language zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
						 * Connection keep-alive Cookie websearch=1;
						 * __utma=137963185.1330931335
						 * .1333159878.1333159878.1333166016.2;
						 * __utmz=137963185.1333159878
						 * .1.1.utmcsr=(direct)|utmccn =(direct)|utmcmd=(none);
						 * __utmb=137963185.1.10.1333166016; __utmc=137963185
						 * Host www.pictriev.com Referer
						 * http://www.pictriev.com/facedb/fs2.php User-Agent
						 * Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20100101
						 * Firefox/11.0
						 */

					}

				}.start();
			}
		});
	}
}
